// 用户相关
export const userApi = {
  login: 'sys/login',
  mlogin: 'sys/mlogin',
  miniLogin: '/sys/miniLogin', // 手机登陆接口
  getUserPhoneByWx: '/sys/user/getUserPhoneOpenidByCode', // 根据当前用户的微信获得手机号
  getUserInfo: '/sys/user/getUserInfo',
  logout: 'sys/logout',
  loginfo: 'sys/loginfo',
  appQueryUser: 'sys/user/appQueryUser', // 移动端查询用户信息(通过用户名模糊查询)
  sms: 'sys/sms', // 短信登陆接口
  sendChangePwSms: '/sys/sendChangePwdSms', // 修改密码-发送短信接口
  sendChangePhoneSms: '/sys/user/sendChangePhoneSms', // 修改、绑定手机-发送短信接口
  verifySMSCode: '/sys/verifySMSCode', // 验证短信验证码接口
  regisUserForMini: '/sys/user/regisUserForMini', // 种植户小程序注册
  checkStatusByUserId: '/sys/user/getCheckStatusByUserId',
  detailAddress: '/sys/common/detailAddress', // 根据经纬度获得当前地址
  getUserPermissionsBytoken: '/sys/permission/getUserPermissionByToken', // 通过token获取用户权限信息
  getPayStatus: '/seedOil/OrderPayment/getPayStatusByOrderId', // 通过订单号获取支付状态
}

// 种植户客户地址
export const growsCustomerAddressApi = {
  list: '/seedOil/growsCustomerAddress/list',
  add: '/seedOil/growsCustomerAddress/add',
  edit: '/seedOil/growsCustomerAddress/edit',
  delete: '/seedOil/growsCustomerAddress/delete',
  deleteBatch: '/seedOil/growsCustomerAddress/deleteBatch',
  queryById: '/seedOil/growsCustomerAddress/queryById',
  queryByUserId: '/seedOil/growsCustomerAddress/queryByUserId',
  exportXls: '/seedOil/growsCustomerAddress/exportXls',
  importExcel: '/seedOil/growsCustomerAddress/importExcel',
}

// 设备清单
export const tblEquipmentListApi = {
  list: '/factory/tblEquipmentList/list',
  add: '/factory/tblEquipmentList/add',
  edit: '/factory/tblEquipmentList/edit',
  delete: '/factory/tblEquipmentList/delete',
  deleteBatch: '/factory/tblEquipmentList/deleteBatch',
  queryById: '/factory/tblEquipmentList/queryById',
  exportXls: '/factory/tblEquipmentList/exportXls',
  importExcel: '/factory/tblEquipmentList/importExcel',
}

// 工厂地址
export const tblFactoryAddressApi = {
  list: 'factory/tblFactoryAddress/list',
  add: 'factory/tblFactoryAddress/add',
  edit: 'factory/tblFactoryAddress/edit',
  delete: 'factory/tblFactoryAddress/delete',
  deleteBatch: 'factory/tblFactoryAddress/deleteBatch',
  queryById: 'factory/tblFactoryAddress/queryById',
  exportXls: 'factory/tblFactoryAddress/exportXls',
  importExcel: 'factory/tblFactoryAddress/importExcel',
}
// 工厂资质
export const tblFactoryCredentialsApi = {
  list: 'factory/tblFactoryCredentials/list',
  add: 'factory/tblFactoryCredentials/add',
  edit: 'factory/tblFactoryCredentials/edit',
  delete: 'factory/tblFactoryCredentials/delete',
  deleteBatch: 'factory/tblFactoryCredentials/deleteBatch',
  queryById: 'factory/tblFactoryCredentials/queryById',
  exportXls: 'factory/tblFactoryCredentials/exportXls',
  importExcel: 'factory/tblFactoryCredentials/importExcel',
}
// 工厂加工能力
export const tblFactoryProcessCapacityApi = {
  list: 'factory/tblFactoryProcessCapacity/list',
  add: 'factory/tblFactoryProcessCapacity/add',
  edit: 'factory/tblFactoryProcessCapacity/edit',
  delete: 'factory/tblFactoryProcessCapacity/delete',
  deleteBatch: 'factory/tblFactoryProcessCapacity/deleteBatch',
  queryById: 'factory/tblFactoryProcessCapacity/queryById',
  exportXls: 'factory/tblFactoryProcessCapacity/exportXls',
  importExcel: 'factory/tblFactoryProcessCapacity/importExcel',
}
// 商品品牌
export const tblProductBrandApi = {
  list: 'factory/tblProductBrand/list',
  add: 'factory/tblProductBrand/add',
  edit: 'factory/tblProductBrand/edit',
  delete: 'factory/tblProductBrand/delete',
  deleteBatch: 'factory/tblProductBrand/deleteBatch',
  queryById: 'factory/tblProductBrand/queryById',
  exportXls: 'factory/tblProductBrand/exportXls',
  importExcel: 'factory/tblProductBrand/importEx',
}
// 商品容器
export const tblProductContainerApi = {
  list: 'factory/tblProductContainer/list',
  add: 'factory/tblProductContainer/add',
  edit: 'factory/tblProductContainer/edit',
  delete: 'factory/tblProductContainer/delete',
  deleteBatch: 'factory/tblProductContainer/deleteBatch',
  queryById: 'factory/tblProductContainer/queryById',
  exportXls: 'factory/tblProductContainer/exportXls',
  importExcel: 'factory/tblProductContainer/importEx',
}

// 商品档案管理
export const tblProductRecordApi = {
  list: 'factory/tblProductRecord/list',
  add: 'factory/tblProductRecord/add',
  edit: 'factory/tblProductRecord/edit',
  delete: 'factory/tblProductRecord/delete',
  deleteBatch: 'factory/tblProductRecord/deleteBatch',
  queryById: 'factory/tblProductRecord/queryById',
  exportXls: 'factory/tblProductRecord/exportXls',
  importExcel: 'factory/tblProductRecord/importEx',
}
// 商品档案归属
export const tblProductRecordOwnerApi = {
  list: 'factory/tblProductRecordOwner/list',
  add: 'factory/tblProductRecordOwner/add',
  edit: 'factory/tblProductRecordOwner/edit',
  delete: 'factory/tblProductRecordOwner/delete',
  deleteBatch: 'factory/tblProductRecordOwner/deleteBatch',
  queryById: 'factory/tblProductRecordOwner/queryById',
  exportXls: 'factory/tblProductRecordOwner/exportXls',
  importExcel: 'factory/tblProductRecordOwner/importEx',
}

// 工厂技术资质
export const tblTechnicalCredentialsApi = {
  list: 'factory/tblTechnicalCredentials/list',
  add: 'factory/tblTechnicalCredentials/add',
  edit: 'factory/tblTechnicalCredentials/edit',
  delete: 'factory/tblTechnicalCredentials/delete',
  deleteBatch: 'factory/tblTechnicalCredentials/deleteBatch',
  queryById: 'factory/tblTechnicalCredentials/queryById',
  exportXls: 'factory/tblTechnicalCredentials/exportXls',
}

// 订单相关接口
export const orderApi = {
  getFarmerOrderList: '/TeaSeedOilExchange/farmer/query', // 种植户获取订单列表
  getFactoryOrderList: '/TeaSeedOilExchange/factory/query', // 工厂获取订单列表
  exchangeCreateOrder: '/TeaSeedOilExchange/insert', // 换油下单 / 暂存下单
  getOrderDetail: '/TeaSeedOilExchange/detail', // 获取订单详情
  exchangeUpdateOrder: '/TeaSeedOilExchange/update', // 修改换油下单
  deleteOrder: '/TeaSeedOilExchange/delete', // 删除订单
  acceptOrRefuse: '/TeaSeedOilExchange/factory/acceptOrRefuse', // 工厂接单或拒单
  cancelOrder: '/TeaSeedOilExchange/cancel', // 取消订单
  confirmArrival: '/ReceiptSettlement/factory/confirmArrival', // 工厂确认到货
  addQuality: '/ReceiptSettlement/addQuality', // 添加质检信息
  updateQuality: '/ReceiptSettlement/updateQuality', // 修改质检信息
  deleteQuality: '/ReceiptSettlement/deleteQuality', // 删除质检信息
  confirmQuality: '/ReceiptSettlement/confirmQuality', // 确认质检信息
  fillNetWeight: '/ReceiptSettlement/fillNetWeight', // 填写实收净重
  confirmOil: '/ReceiptSettlement/confirmOil', // 确认得油信息
}

// 订单支付相关接口
export const payApi = {
  exchangeOrderPay: '/seedOil/OrderPayment/exchangeOrderPay', // 换油订单支付
  list: '/seedOil/OrderPayment/list', // 支付列表查询
  edit: '/seedOil/OrderPayment/edit', // 支付信息编辑
  delete: '/seedOil/OrderPayment/delete', // 支付信息删除
  deleteBatch: '/seedOil/OrderPayment/deleteBatch', // 支付信息批量删除
  add: '/seedOil/OrderPayment/add', // 支付信息添加
  queryById: '/seedOil/OrderPayment/queryById', // 根据ID查询支付信息
  importExcel: '/seedOil/OrderPayment/importExcel', // excel导入
  exportXls: '/seedOil/OrderPayment/exportXls', // excel导出
  uploadExchangeOrderPayProof: '/seedOil/OrderPayment/uploadExchangeOrderPayProof', // 上传换油订单支付凭证
}

// 提油订单相关接口
export const extractOrderApi = {
  query: '/oilWithdrawal/queryOilWithdrawalOrder', // 提油订单查询
  add: '/oilWithdrawal/insertOilWithdrawalOrder', // 新增提油订单
  detail: '/oilWithdrawal/detailOilWithdrawalOrder', // 提油订单详情
  update: '/oilWithdrawal/updateOilWithdrawalOrder', // 修改提油订单
  oilStockin: '/oilWithdrawal/oilStockin', // 产成品入库
  oilDelivery: '/oilWithdrawal/oilDelivery', // 发货
  confirmReceipt: '/oilWithdrawal/confirmReceipt', // 确认收货
  confirmSelfPickup: '/oilWithdrawal/confirmSelfPickup', // 确认自提
  temporaryStockin: '/oilWithdrawal/temporaryStockin', // 暂存入库
}
